#!/usr/bin/python3

import sys, pyglet

img = pyglet.image.load(sys.argv[1])
win = pyglet.window.Window(width=img.width, height=img.height)
win.set_caption(sys.argv[1])

@win.event
def on_draw():
    win.clear()
    img.blit(0, 0)

pyglet.app.run()
